package cn.itcast.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName 类名
 * @Description 类说明
 */
@RestController
public class DemoController {
    private AtomicInteger atomicInteger = new AtomicInteger(0);
    @GetMapping("count")
    public String count(){
        return "测试自动构建: " + atomicInteger.incrementAndGet();
    }
}
